package com.yh.gulimall.order.feign;

import com.yh.common.utils.R;
import com.yh.gulimall.order.feign.fallback.ProductFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "gulimall-product",fallback = ProductFeignServiceFallBack.class)
public interface ProductFeignService {
    @GetMapping("/product/spuinfo/bySkuId/{skuId}")
    R getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
